(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "common", "react"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const common_1 = require("common");
    const React = require("react");
    // let bootbox = window['bootbox'];
    class Site {
        constructor() {
            this.style = {
                tableClassName: 'table table-striped table-bordered table-hover'
            };
            this.loadingElement = React.createElement("div", { className: "loading" },
                React.createElement("i", { className: "icon-spinner icon-spin", style: { marginRight: 4 } }),
                React.createElement("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D..."));
        }
        get userClientUrl() {
            let { protocol, host, pathname } = location;
            pathname = pathname.replace('admin', 'user');
            let url = `${protocol}//${host}${pathname}?appKey=${common_1.urlParams.appKey}#home_index`;
            return url;
        }
        storeUrl(stroeId) {
            let pageName = "home/index";
            console.assert(pageName != null);
            return `?appKey=${stroeId}#${pageName}`;
        }
    }
    let site = new Site();
    exports.default = site;
});
